<template>
	<!-- 收起展开组件 -->
	<div class="showDown" @click="$emit('handleShowdown')">
		<span class="text">{{ showDown ? '展开' : '收起' }}</span>
		<span class="icon-box"><Icon :type="showDown ? 'arrowDown' : 'arrowUp'"/></span>
	</div>
</template>

<script>

export default{
	props:{
		showDown:{
			type: Boolean,
			default: false
		}
	}
}
</script>

<style lang="less" scoped>
.showDown{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 38px;
	line-height: 38px;
	text-align: center;
	box-sizing: border-box;
	font-size: 14px;
	cursor: pointer;
	color: var(--c9);
	.text{
		padding-right: 3px;
	}
	.icon-box{
		font-size: 18px;
	}
}
</style>
